home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / lock_off.zip / LOCKOFF.MSG < prev   
Internet Message Format  |  1989-04-19  |  1KB

  1. From: asickels@bonnie.ics.uci.edu (Alan Sickels)
  2. Subject: Re: Reverse Num-Lock problems
  3. Date: 19 Apr 89 23:52:10 GMT
  4. Summary: It's internal
  5.  
  6. bobc@killer.Dallas.TX.US (Bob Calbridge) writes:
  7. >Here's a problem that has started to pop up lately at our school district.
  8. >Under certain circumstances the numeric key pad acts contrary to what the
  9. >numlock light says.  We suspect anything from the keyboard to the software.
  10.  
  11. I've got an XT clone and it happens quite frequently to me.  This is what
  12. is happening:  The true NUM-LOCK state on PC/XT's and clones is stored in
  13. memory in bit 5 of byte 0040:0017H.  With the AT and 386's, the keyboard
  14. communication is two way and the keyboard lights reflect the true state
  15. of the memory location.  The PC/XT's can't do that so it's kept track of
  16. independent of the true state.  This also annoyed me so I wrote a quick
  17. assembly program to turn all the indicator bits off (i.e. NUM-LOCK,
  18. CAPS-LOCK, and SCROLL-LOCK) and just make sure all the lights are off
  19. when I run it.  Source code included.
  20.  
  21.    MOV     AX,0040H
  22.    MOV     DS,AX
  23.    MOV     BX,0017H
  24.    AND     BYTE PTR [BX],8FH
  25.    MOV     AH,4CH
  26.    INT     21H
  27.  
  28. Alan Sickels
  29.